Skip to content

Upgrade superlo #1

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
Nov 27, 2023
Merged

Upgrade superlo #1

merged 5 commits into from
Nov 27, 2023

Conversation

54m
Copy link
Member

@54m 54m commented Nov 24, 2023

panicのケアが大変なのでloの依存を無くしてしまった

欲しかったsuperlo.Mapの並列処理版を追加した

54m added 4 commits November 25, 2023 07:50
Removed external 'lo' package import from map.go and rewritten the Map function. Instead of reusing the Map function defined in 'lo' package, the iteration over the collection is now handled internally within Map itself. This change simplifies code, reduces third-party dependencies, and makes error handling more direct; function now immediate returns an error instead of panicking.
Added a new function, ParallelMap, to map.go to allow for parallel manipulation of a slice that transforms it to a different type. This was implemented to enhance performance by concurrently executing iterations, while maintaining the order of results. It also handles any possible errors which could occur during the execution.
Introduced test cases for the new ParallelMap function in map_test.go to ensure its correctness. Included both successful and erroneous scenarios to check for the proper handling of multiple conditions. This is necessary for validating the reliability and effectiveness of the ParallelMap logic under various circumstances.
@54m 54m added bug Something isn't working enhancement New feature or request labels Nov 24, 2023
@54m 54m requested a review from chun37 November 24, 2023 22:55
@54m 54m self-assigned this Nov 24, 2023
@chun37 chun37 merged commit 1b197ca into main Nov 27, 2023
@chun37 chun37 deleted the feature/superlo/main branch November 27, 2023 03:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants