Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Optimize List#updated #258

Merged
merged 1 commit into from Oct 4, 2017
Merged

Optimize List#updated #258

merged 1 commit into from Oct 4, 2017

Conversation

julienrf
Copy link
Contributor

@julienrf julienrf commented Oct 2, 2017

Don’t recompute the shared tail.

Fixes #256

Benchmark on call to updated with random indices, for various sizes of lists (lower is better):

transform_updaterandom

The ListUpdatedBenchmark line (in blue) contains the specialized implementation.

Don’t recompute the shared tail.
@julienrf julienrf merged commit 39baff1 into scala:master Oct 4, 2017
@julienrf julienrf deleted the list-updated branch October 4, 2017 08:15
@Atry
Copy link

Atry commented Apr 10, 2018

LazyList#update is still neither optimized nor lazy.

@julienrf
Copy link
Contributor Author

Do you mind opening another issue for that?

@Atry
Copy link

Atry commented Apr 11, 2018

@julienrf There is an issue for that #549

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants