cache-aware assign function
some cache testing beginning.