amaembo / streamex

Enhancing Java Stream API
Apache License 2.0
2.18k stars 249 forks source link

least/greatest improvement: Limiter #264

Closed ArthurGazizov closed 1 year ago

ArthurGazizov commented 1 year ago

I really liked your implementation of the Limiter, just added small optimization. When current Limiter is in initial state and we want to putAll items from other limiter, we can do system array copy if space is enough. Result will be the same as if just call put method for each element

ArthurGazizov commented 1 year ago

@amaembo could you please help me a little bit with error, seems to me it doesn’t relate to commit🙂

Error: Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report (default-cli) on project streamex: Build error: Either repository token or service with job id must be defined -> [Help 1]

amaembo commented 1 year ago

Yes, it doesn't. Please ignore it.

amaembo commented 1 year ago

Thanks.