Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update Svg Helper function with Read Write mutex w/signoff #581

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Jougan-0
Copy link
Contributor

Description

This PR fixes #
PR needs to be merged to fix conflict with concurrency reduce registration time.
Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

Copy link
Contributor

@MUzairS15 MUzairS15 left a comment

Choose a reason for hiding this comment

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

@Jougan-0 Let's use ThreadSafeStore defined in store.go for managing the SVG cache.

@@ -495,3 +496,35 @@ func ConvertMapInterfaceMapString(v interface{}) interface{} {

return v
}

func WorkerPool[T any](tasks []T, workerFunc func(T), maxWorkers int) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will you revisit the workerFunc return type? How is the error handling done?

Copy link
Contributor Author

@Jougan-0 Jougan-0 Sep 19, 2024

Choose a reason for hiding this comment

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

Yes, I'll see how to improve the error.

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.

2 participants