Skip to content

Parallelize schema reflection #34

Description

@FelixWieland

To make the development process more interactive, kosmo needs to speed up his schema reflection.
This could be relatively easy get done by using go routines for each type and resolver reflection.

To avoid deadlocks the used cache implementation must support parallel access.
Starting point:

kosmo/cache.go

Line 24 in 5518e08

func (c *cache) Read(key string, fallback func(setter SetCache)) interface{} {

Before the implementation starts, first check the following concurrency and parallelism rule:
https://github.com/golang/go/wiki/CodeReviewComments#synchronous-functions

and visit popular libraries to check how they implemented parallelism inside a library.

Metadata

Metadata

Assignees

Labels

clean codeImprovements in code qualityenhancementNew feature or requestperformancePerformance improvement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions