This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit fa39a3a
committed
[[ Foundation ]] Make single byte fetching more efficient.
When copying a data range which is of length 1, libfoundation will now use
a pre-allocated, immutable MCDataRef.
A vector of 256 MCDataRefs, corresponding to each single byte value is
created on startup.
(cherry picked from commit 215f593)1 parent 5ba5423 commit fa39a3a
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
| |||
715 | 727 | | |
716 | 728 | | |
717 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
718 | 743 | | |
719 | 744 | | |
720 | 745 | | |
721 | 746 | | |
722 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
723 | 753 | | |
724 | 754 | | |
725 | 755 | | |
| |||
0 commit comments