Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Update module github.com/samber/lo to v1.53.0#56

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-samber-lo-1.x
Open

Update module github.com/samber/lo to v1.53.0#56
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-samber-lo-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 2, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/samber/lo v1.52.0v1.53.0 age confidence

Release Notes

samber/lo (github.com/samber/lo)

v1.53.0

Compare Source

Announcing the latest release of lo with lots of good gifts! 🎁

🌊 First, a big thanks to @​d-enk for making lots of performance improvements in the recent weeks.

🧪 Second, this release introduces a new simd experimental package. If you run on an amd64 architecture and a recent CPU, you can perform very fast operations thanks to SIMD CPU instructions.
-> Documentation: https://lo.samber.dev/docs/experimental/simd

💥 Third, this version adds *Err variants of many lo helpers (like MapErr, FlatMapErr, ReduceErr, etc.) whose callbacks can return an error and short-circuit execution when one occurs.

[!NOTE]
The simd sub-package is considered not stable. We might break the initial API based on developers' feedback in the coming months.

moto-gopher2

Features & improvements

Deprecation

Performance improvements

  • feat: Optimize UniqMap to reduce unnecessary slice preallocation by @​ivolkoff in #​710
  • refactor(it): simplify DropLast, TrimSuffix, TrimPrefix and use range loops by @​d-enk in #​782
  • bench: fix iterators to actually iterate in benchmarks by @​d-enk in #​781
  • refactor: simplify slice cut/trim prefix/suffix functions by @​d-enk in #​787
  • perf: optimize Sliding by pre-allocating result capacity by @​d-enk in #​783
  • refactor: improve SamplesBy performance and revert non-panic behavior for negative count by @​d-enk in #​786
  • feat(perf): speed up some functions with linear complexity O=n2 -> O=2n by @​samber in #​726
  • perf: only allocate a single map in Intersect by @​NathanBaulch in #​736
  • perf: preallocate Words string buffer by @​NathanBaulch in #​728
  • refactor: improve lo[it].Intersect[By] readability and performance by @​d-enk in #​756
  • perf: preallocate result slice in SamplesBy by @​d-enk in #​766
  • perf: optimize PartitionBy by eliminating redundant append by @​d-enk in #​765
  • perf: correct prealloc of the result in FindUniques/Duplicates[By] by @​d-enk in #​764
  • perf: use Ternary() instead If().Else() in Range/RangeFrom by @​d-enk in #​770
  • perf: optimize it.Trim to use DropLastWhile(DropWhile(...)) by @​d-enk in #​780
  • perf: replace Min/Max(Range) with Min/MaxIndexBy in DispatchingStrategy by @​d-enk in #​779
  • perf: preallocate result slice in RangeWithSteps by @​d-enk in #​820
  • perf: avoid unnecessary error allocation in NthOr, NthOrEmpty by @​d-enk in #​817
  • perf: optimize Zip and ZipBy functions by @​d-enk in #​818
  • perf: lazy it.Reverse iteration instead of in-place mutation by @​d-enk in #​814
  • perf: optimize Substring to work directly with strings instead of converting to runes by @​d-enk in #​822
  • perf: optimize it.CountBy by removing Filter iterator chain by @​d-enk in #​813
  • perf: optimize it.Find to avoid unnecessary allocations by @​d-enk in #​811
  • perf: optimize it.ContainsBy/EveryBy/SomeBy/NoneBy to avoid unnecessary allocations by @​d-enk in #​812
  • refactor: simplify for loop by @​d-enk in #​772
  • refactor: remove some redundant checks by @​d-enk in #​771
  • refactor: simplify it.HasSuffix implementation by @​d-enk in #​767
  • refactor: improve Slice logic and fix docstring by @​d-enk in #​785

Thanks @​d-enk !!

Other (doc, tests, style...)

Dependencies

New Contributors

Full Changelog: samber/lo@v1.52.0...v1.53.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title Update module github.com/samber/lo to v1.53.0 Update module github.com/samber/lo to v1.53.0 - autoclosed Mar 23, 2026
@renovate renovate Bot closed this Mar 23, 2026
@renovate renovate Bot deleted the renovate/github.com-samber-lo-1.x branch March 23, 2026 14:18
@renovate renovate Bot changed the title Update module github.com/samber/lo to v1.53.0 - autoclosed Update module github.com/samber/lo to v1.53.0 Mar 23, 2026
@renovate renovate Bot reopened this Mar 23, 2026
@renovate renovate Bot force-pushed the renovate/github.com-samber-lo-1.x branch 2 times, most recently from 93fa722 to a94416e Compare March 23, 2026 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

0 participants