silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
183 stars 18 forks source link

Optimise uses of ndarray #170

Closed axelboc closed 4 years ago

axelboc commented 4 years ago
loichuder commented 4 years ago

WIP at #178. Waiting for cwise to support recent ES versions to go further (https://github.com/scijs/cwise/pull/25).

axelboc commented 4 years ago

I think #198 brings us to a good state. The cwise optimisations no longer seem relevant anyway. There are still a few places where the code could be optimised (e.g. findDomain called twice with log scale and negative/positive domain, two uses of findDomain(values.filter()) which amounts to two loops, etc.), but I don't think the gain would be worthwhile when compared to the increase in code complexity.

loichuder commented 4 years ago

There are still a few places where the code could be optimised (e.g. findDomain called twice with log scale and negative/positive domain, two uses of findDomain(values.filter()) which amounts to two loops, etc.), but I don't think the gain would be worthwhile when compared to the increase in code complexity.

Yes, I think the performance is not an issue right now: things are running quite smoothly. Let's wait until we get more complains on that :smile: