Alex

91 posts

Alex banner
Alex

Alex

@pioner_dev

React Native dev @margelo_com

Valencia, Spain Katılım Ekim 2021
112 Takip Edilen85 Takipçiler
Sabitlenmiş Tweet
Alex
Alex@pioner_dev·
Just released react-native-columnar 🚀 A zero-copy columnar transport for React Native built around ArrayBuffer + TypedArrays. Benchmarks are pretty wild: • 27× faster at 100 rows • 94× faster at 500 rows • 121× faster at 1000 rows • 208× faster at 2000 rows
Alex tweet media
English
3
5
48
3.1K
Alex retweetledi
Margelo
Margelo@margelo_com·
It's time to spill some secret sauce: How to actually build a good Keyboard experience for your #reactnative apps 👀
English
11
35
325
16.9K
Adnan
Adnan@adnansahinovich·
Built one of the fastest end-to-end encryption demos ever in React Native. ~0.8ms on-device MLS encryption powered by OpenMLS, Rust, and Nitro Modules. Zero-copy JSI. Native crypto performance. Full deep dive soon on blog.margelo.com
English
14
33
561
63.4K
Alex
Alex@pioner_dev·
@BoazWith pushed a Memory management info
English
0
0
0
6
Boaz Hwang
Boaz Hwang@BoazWith·
@pioner_dev If the public API hides it, user docs can stay light. I'd still keep an internal teardown note or test, because future bugs will come from maintainers forgetting that ownership rule.
English
2
0
1
68
Alex
Alex@pioner_dev·
Just released react-native-columnar 🚀 A zero-copy columnar transport for React Native built around ArrayBuffer + TypedArrays. Benchmarks are pretty wild: • 27× faster at 100 rows • 94× faster at 500 rows • 121× faster at 1000 rows • 208× faster at 2000 rows
Alex tweet media
English
3
5
48
3.1K
Alex
Alex@pioner_dev·
@peterpme It won’t be the last one, will be part 2, then 3 , 😃
English
1
0
2
63
Peter Piekarczyk (🥧🚗🐥)
should i write a book called “The Last React Native Book in the Age of AI” and would it actually be the last one?
English
5
0
20
1.3K
Alex
Alex@pioner_dev·
@BoazWith I will add it 👍
English
0
0
0
36
Alex
Alex@pioner_dev·
@BoazWith Do you think this is necessary ? since the user of the library will never touch this and works under the hood
English
1
0
0
43
Boaz Hwang
Boaz Hwang@BoazWith·
@pioner_dev That destructor path is the part I'd document right next to the API. Cross-boundary ownership bugs are miserable when the rule only lives in the maintainer's head.
English
1
0
0
60
Alex
Alex@pioner_dev·
@peterpme if you return some data from the native side, and the data is like Array<{id: number, isActive: bool}>, and there are a lot of objects, you should try this solution, it's much faster
English
0
0
4
299
Alex
Alex@pioner_dev·
@BoazWith When the last reference is destroyed, the class destructor is called and releases all resources
English
1
0
0
60
Boaz Hwang
Boaz Hwang@BoazWith·
@pioner_dev Got it, shared_ptr on both sides makes ownership less scary. How are you handling teardown when JS drops the last reference first?
English
1
0
0
69
Alex
Alex@pioner_dev·
@BoazWith it will be destroyed when both sides no longer hold it
English
0
0
0
15
Boaz Hwang
Boaz Hwang@BoazWith·
@pioner_dev Zero-copy is exactly where RN performance gets interesting. Did you have to change the API shape to keep ArrayBuffer ownership predictable?
English
2
0
0
300
Alex
Alex@pioner_dev·
Cooking something interesting around binary transports for React Native JSI
Alex tweet media
English
4
4
76
7.4K
Marc
Marc@mrousavy·
@SamuelScheit @pioner_dev We're exploring different options, the most performant one could be a type-generated ORM via nitrogen
English
1
0
2
96
Alex
Alex@pioner_dev·
@gabimoncha react-native-quick-base64: Yes, it has the same API. this -> react-native-quick-crypto I am not sure
English
1
0
0
27
Gabriel Moncha
Gabriel Moncha@gabimoncha·
@pioner_dev would this work as a drop-in replacement for react-native-quick-base64? both for react-native-buffer and react-native-quick-crypto?
English
1
0
0
52
Alex
Alex@pioner_dev·
Just published a new release of react-native-turbo-base64 with more optimizations 🚀
Alex tweet media
English
3
1
34
2.8K
Alex
Alex@pioner_dev·
@SamuelScheit yes, it always returns an array<{...}> which is slow, for example, if you query msg ids from the chat, you will have an array with objects with 1 property, id, I tested , it's too slow compared to a flat ArrayBuffer with ids
English
0
0
1
33
Samuel Scheit
Samuel Scheit@SamuelScheit·
@pioner_dev Would be interesting to see the impact on db libraries. e.g. op-sqlite has something similar called executeRaw, which creates arrays instead of objects. #L207-L257" target="_blank" rel="nofollow noopener">github.com/OP-Engineering…
English
2
0
0
70
Alex
Alex@pioner_dev·
@BoazWith the benchmark code
Alex tweet media
English
0
0
0
12
Boaz Hwang
Boaz Hwang@BoazWith·
@pioner_dev Yep, test it in the full render path too. The wrapper can look fast alone and still lose once JS reads it from a bunch of components.
English
2
0
0
17
Alex
Alex@pioner_dev·
@BoazWith In my benchmark, I read all properties, the same as from object , and the result is 90x faster
Alex tweet mediaAlex tweet media
English
0
0
0
12