You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #2323. ncplane_resize_internal() ought be optimized for the case where the x dimension doesn't change -- in this case, we want to realloc() if possible, since we needn't restripe the existing data (when the x dimension does change, we ought go ahead and malloc()+copy, as we'd otherwise realloc()+restripe, where the realloc() might require a copy itself).
this is an important optimization if someone's laying out a plane that grows downward with the content. this way, we only require a copy when we actually must move (i.e. within realloc()).
The text was updated successfully, but these errors were encountered:
See #2323.
ncplane_resize_internal()
ought be optimized for the case where the x dimension doesn't change -- in this case, we want torealloc()
if possible, since we needn't restripe the existing data (when the x dimension does change, we ought go ahead andmalloc()
+copy, as we'd otherwiserealloc()
+restripe, where therealloc()
might require a copy itself).this is an important optimization if someone's laying out a plane that grows downward with the content. this way, we only require a copy when we actually must move (i.e. within
realloc()
).The text was updated successfully, but these errors were encountered: