You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another optimization possibility: We currently have to check for every index in every line whether it is contained in the field selections (i.e. whether it should be displayed). This seems a little inefficient. Instead of having to iterate over every field, we could iterate over the field selections, which will always be less total iterations than iterating of all fields. For each selection/range, we keep only those in the specific range. This requires that we can iterate over the underlying Ranges implementation from an external crate (I think that isn't supported currently), and the ranges have to be sorted and non-overlapping.
Another optimization possibility: Currently, I have mostly used Tokio's mutexes since they prevent deadlocks when used across await calls (i.e. the critical section enclosed by the mutex contains some async function call that is awaited). But async mutexes are less performant than regular ones, so maybe we should consider slightly re-designing the system so that we can use regular sync mutexes.
in ui/state/lines.rs: AoS vs SoA (keep formatted and unformatted versions of line in struct of array or array of struct?)
The text was updated successfully, but these errors were encountered: