-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove length checks to a number of core functions.
This lets them be more generic and implemented over a wider range of data types, such as fibers.
- Loading branch information
Calvin Rose
committed
Jan 11, 2021
1 parent
f0dbc2e
commit 3883460
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is it worth it (here and for the changes below) to use
length
if it is available, and fall back to@[]
if it isn't? Given that presumably if we know the length ahead it of time, it will be more efficient to allocate the whole thing at once.