Brendan Hansknecht
|
96b5d365b2
|
Add capacity growth to RocStr
Also, cleans up the alloc and realloc api for both list and str.
Updates Str.reserve to match List.reserve
|
2022-10-10 22:24:55 -07:00 |
|
Brendan Hansknecht
|
fdafac4323
|
Remove RocResult from utils.zig
It is implemented wrong and not used anywhere
|
2022-10-10 08:25:59 -07:00 |
|
Brendan Hansknecht
|
aca6f2a8f1
|
add todo around improving performance
|
2022-10-08 07:53:50 -07:00 |
|
Brendan Hansknecht
|
8269986113
|
remove comment on zero width types.
They should not affect the normal case. It is better they affect the capacity calculation
|
2022-10-08 07:53:33 -07:00 |
|
Brendan Hansknecht
|
eca4682787
|
deal with zero element_width
That being said, this only affects wasm.
So wasm probably should be handling zero element lists in a smarter way.
|
2022-10-07 17:58:48 -07:00 |
|
Brendan Hansknecht
|
557ee69557
|
fix minor typo
|
2022-10-07 17:11:46 -07:00 |
|
Brendan Hansknecht
|
1665f7160d
|
Fix bug in reallocate
|
2022-10-07 17:11:33 -07:00 |
|
Brendan Hansknecht
|
d06966392f
|
Add smarter list capacity growth calculations
|
2022-10-07 08:59:32 -07:00 |
|
Brendan Hansknecht
|
4ebe1b2bce
|
Avoid allocating a new list when calling List.sublist
|
2022-10-05 08:11:02 -07:00 |
|
Folkert
|
f44a30cf48
|
fix off-by-one error in List.dropAt
|
2022-09-28 14:57:55 +02:00 |
|
Brian Carroll
|
b1b28650e9
|
builtins: Avoid reallocating Lists when they have enough capacity
|
2022-09-04 14:37:42 +01:00 |
|
Folkert
|
56c9787e8f
|
List.appendUnsafe and List.reserve
|
2022-07-07 22:40:28 +02:00 |
|
Brian Carroll
|
40231535fa
|
builtins: Delete Zig implementation of List.mapWithIndex
|
2022-07-04 15:14:32 +01:00 |
|
Folkert de Vries
|
2a82d24847
|
Merge pull request #3369 from rtfeldman/pure-roc-list-walk
List.walk and friends in pure Roc
|
2022-07-03 02:32:43 +02:00 |
|
Folkert de Vries
|
75b4b3a206
|
Merge pull request #3365 from rtfeldman/to-scalars
Add Str.toScalars builtin
|
2022-07-02 23:04:28 +02:00 |
|
Brian Carroll
|
94181111be
|
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk
|
2022-07-02 21:44:42 +01:00 |
|
Richard Feldman
|
077c37d9fb
|
Use alignCast over intToPtr
|
2022-07-02 15:22:29 -04:00 |
|
Folkert
|
e29a89d33c
|
remove zig implementation of keepIf/keepErrs/keepOks
|
2022-07-02 19:38:38 +02:00 |
|
Richard Feldman
|
1b872022bb
|
Don't let fromSlice allocate when slice is empty
|
2022-07-02 13:13:28 -04:00 |
|
Richard Feldman
|
ce6c2f330c
|
Improve some RocList functions in zig
|
2022-07-02 13:11:43 -04:00 |
|
Richard Feldman
|
6cdf63b319
|
Add some zig helpers to RocList
|
2022-07-02 13:11:42 -04:00 |
|
Richard Feldman
|
ff596f5e75
|
Add RocList.first_elem_ptr to list.zig
|
2022-07-02 13:11:42 -04:00 |
|
Brian Carroll
|
219e6d11cf
|
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk
|
2022-07-02 18:08:43 +01:00 |
|
Anton-4
|
b74fc3554b
|
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder
|
2022-07-02 12:35:19 +02:00 |
|
Anton-4
|
b1b9a8dc0a
|
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder
|
2022-07-02 10:44:25 +02:00 |
|
Anton-4
|
eee85fa45d
|
moved all crates into seperate folder + related path fixes
|
2022-07-01 17:37:43 +02:00 |
|