Skip to content

Conversation

@josstn
Copy link
Contributor

@josstn josstn commented Aug 22, 2025

Behov / Bakgrunn

Behov / Bakgrunn
Sidan det å opprette ny ObjectMapper kan vere ein tung operasjon ønsker vi å gjere det så sjelden som mulig.

(https://github.com/navikt/k9-sak/pull/11983#discussion_r2273033369)

Løsning

Skriver ObjectMapperFactory om til å kunne returnere ein kopi av cacha base ObjectMapper, og bruker denne istadenfor å opprette ny frå botnen av kvar gang.

Implementert av copilot.

Copilot AI and others added 2 commits August 22, 2025 16:12
* Initial plan

* Implement ObjectMapper optimization - use cached base ObjectMapper copy instead of creating new instances

Co-authored-by: josstn <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: josstn <[email protected]>
…verkRestTjeneste (#647)

* Initial plan

* Fix compilation error: add ObjectMapperFactory import and remove unused ObjectMapperResolver import

Co-authored-by: josstn <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: josstn <[email protected]>
@josstn josstn marked this pull request as ready for review August 25, 2025 07:28
@josstn josstn requested a review from a team as a code owner August 25, 2025 07:28
@josstn
Copy link
Contributor Author

josstn commented Aug 25, 2025

Samme endring som https://github.com/navikt/k9-sak/pull/12027, implementert av copilot.

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.

3 participants