Skip to content

Slight improvement in performance. #125

Merged
idontgetoutmuch merged 4 commits intointerface-to-performancefrom
short-byte-string-performance
May 13, 2020
Merged

Slight improvement in performance. #125
idontgetoutmuch merged 4 commits intointerface-to-performancefrom
short-byte-string-performance

Conversation

@lehins
Copy link
Copy Markdown
Collaborator

@lehins lehins commented May 7, 2020

Improve performance of generation of ShortByteString (for small lengths it doubles the performance)

Copy link
Copy Markdown
Collaborator

@curiousleo curiousleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This made me realise that we currently have neither tests nor benchmarks for the bytestring generators in the repo. If this was a benchmark-driven optimisation, it would obviously be nice if we could include that benchmark in the benchmark suite.

@lehins lehins force-pushed the short-byte-string-performance branch from e554cbe to 5c4fe6c Compare May 8, 2020 14:11
@lehins
Copy link
Copy Markdown
Collaborator Author

lehins commented May 8, 2020

I thought someone might ask about that. This PR also adds couple of tests and a benchmark for ShortByteString generation.

Also adds Eq and NFData instances for StdGen.

Copy link
Copy Markdown
Collaborator

@curiousleo curiousleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome.

@curiousleo curiousleo force-pushed the short-byte-string-performance branch from 910a8f1 to c33814e Compare May 13, 2020 08:51
@idontgetoutmuch idontgetoutmuch merged commit 73f1f6e into interface-to-performance May 13, 2020
idontgetoutmuch added a commit that referenced this pull request May 13, 2020
* Slight improvement in performance. (for small lengths it doubles the performance)

* Addition of a couple tests for ByteString generation

* Add `Eq` and `NFData` instances for `StdGen`

* Add benchmark for generation of `ShortByteString`s
lehins added a commit that referenced this pull request May 18, 2020
* Slight improvement in performance. (for small lengths it doubles the performance)

* Addition of a couple tests for ByteString generation

* Add `Eq` and `NFData` instances for `StdGen`

* Add benchmark for generation of `ShortByteString`s
curiousleo pushed a commit that referenced this pull request May 19, 2020
* Slight improvement in performance. (for small lengths it doubles the performance)

* Addition of a couple tests for ByteString generation

* Add `Eq` and `NFData` instances for `StdGen`

* Add benchmark for generation of `ShortByteString`s
curiousleo pushed a commit that referenced this pull request May 20, 2020
* Slight improvement in performance. (for small lengths it doubles the performance)

* Addition of a couple tests for ByteString generation

* Add `Eq` and `NFData` instances for `StdGen`

* Add benchmark for generation of `ShortByteString`s
Shimuuar pushed a commit to Shimuuar/random that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants