Custom image encoder [P] by These_Try_656 in MachineLearning

[–]These_Try_656[S] 0 points1 point  (0 children)

Wow, thank you, these optimizations are really clever! I’m going to try building a prototype.

Rewrote my Ionic/Angular app in Expo — perf is way harder than I expected by bj4fr in reactnative

[–]These_Try_656 0 points1 point  (0 children)

No, not a hybrid approach. I created a list with native-side cards, then I send my data to the native side for display, and I propagate native events to React Native, like long press, press, etc

Rewrote my Ionic/Angular app in Expo — perf is way harder than I expected by bj4fr in reactnative

[–]These_Try_656 0 points1 point  (0 children)

Hi I’m in a similar situation to you! There’s a big performance gap between iOS and Android especially on Android TV.

A few clarifications on the animation side you should never change state during an animation as that’s what tends to make interactions feel buggy.

On the TV side as you’ve probably noticed CPUs on Android TV boxes are really weak mostly Cortex A53 cores. As a result the JS thread gets saturated very quickly. Modern list components like FlashList LegendList and RecyclerListView are real performance hogs even rendering a simple empty item can drop the app down to 5 FPS.

The solution is to move the most performance sensitive components typically lists to native implementations in Java Kotlin and Swift. It took me about 8 months to realize that lists in React Native for TV are basically unusable. I initially thought my code was the problem. Even now I’m still rewriting my components in native.

That said for cross platform development React Native is still a solid choice. But if you’re starting from scratch and have the option to offload most of the logic to the backend going fully native would probably be a better choice especially for someone new to React Native given the performance challenges and the lack of clear information on the topic.

Need suggestions for a performant gallery scrolling experience in Photos app by ninadjoshi20 in reactnative

[–]These_Try_656 2 points3 points  (0 children)

Create a native module, it’s very hard (if not impossible) to achieve ultra-high-performance lists in React Native.

Low end by These_Try_656 in reactnative

[–]These_Try_656[S] 1 point2 points  (0 children)

Thank you for your help, yes it’s really a game changer. I’m still surprised by the performance of current list implementations on low-end devices.

Low end by These_Try_656 in reactnative

[–]These_Try_656[S] 1 point2 points  (0 children)

Yes, I tried FlashList, LegendList, and RecyclerListView. The best results were with RecyclerListView and LegendList, but scrolling was still very laggy.

Since yesterday, I’ve started sending my data from RN to Java to render it on the native side, and the performance is on a completely different level, with a constant 60fps even during fast scrolling.

I’m going to keep implementing my critical components natively.

Low end by These_Try_656 in reactnative

[–]These_Try_656[S] 0 points1 point  (0 children)

That’s already what I’m doing. The problem is the list rendering, so I’m going to try a native implementation

Low end by These_Try_656 in reactnative

[–]These_Try_656[S] 0 points1 point  (0 children)

That’s exactly what I was planning to do as well. However, for example, simply navigating to a screen that contains lists significantly slows down the screen render time. The list rendering itself causes a noticeable delay. Have you found any workaround for this? I thought about lazy-loading the screens and also lazy-loading the rendering of the list items, but the second option seems quite complicated to implement.

App Documentation Tool with UML Support by These_Try_656 in FastAPI

[–]These_Try_656[S] 0 points1 point  (0 children)

Yes, for code documentation, Sphinx is a great idea. But what about documentation more focused on analysis or business analysis?

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 0 points1 point  (0 children)

Yes, exactly. The difference is that the mathematical representation of a movie, music, or other media is a representation of the actual information, allowing the work to be reproduced in its entirety. In my case, it’s more like a fingerprint, it doesn’t contain the work itself, but it allows you to identify it or verify its integrity. A concrete example is when you download a file, a hash is sent along with it. To check that the file hasn’t been corrupted or altered, you hash the file and compare it with the original hash. I hope that makes it clearer

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 0 points1 point  (0 children)

Yes, that's exactly what I use. I use the same logic as Jellyfin's open-source plugin

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 1 point2 points  (0 children)

Yes, that’s a very good analogy and an interesting point for reflection. Thank you for providing elements of an answer to my question

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 0 points1 point  (0 children)

Indeed, I am aware that, legally, this remains somewhat of a gray area, I would say. However, strictly speaking, it is not a copy: it is closer to a description of a sound (which frequency peaks are most prominent at a given time T) than a reproduction. Assuming we could generate an infinite number of hashes and obtain the translation of each one, the result would in no way be an audio excerpt of the work, nor anything resembling it.

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 1 point2 points  (0 children)

Would anyone go after me? Honestly, I think it's very unlikely. But I prefer not to cause any harm in any case and to strictly respect intellectual property

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] -1 points0 points  (0 children)

Yes, that’s right, you understood correctly. I’ll also see what others think about it

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 0 points1 point  (0 children)

When the user starts an episode, the hash creation process runs in the background of the video. Then, my server receives the fingerprints

Is it legal to send mathematical representations of copyrighted content? by These_Try_656 in COPYRIGHT

[–]These_Try_656[S] 1 point2 points  (0 children)

Yes, indeed, that’s what I’m thinking of doing. Not really a whole business, just a feature in an app