You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/10/19 07:21:00 UTC

[jira] [Commented] (DOXIASITETOOLS-268) Don't open version resource file on every call to render

    [ https://issues.apache.org/jira/browse/DOXIASITETOOLS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17620054#comment-17620054 ] 

Michael Osipov commented on DOXIASITETOOLS-268:
-----------------------------------------------

This makes sense. The version won't change constantly. Let me check your proposal...

> Don't open version resource file on every call to render
> --------------------------------------------------------
>
>                 Key: DOXIASITETOOLS-268
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-268
>             Project: Maven Doxia Sitetools
>          Issue Type: Bug
>            Reporter: John Dimeo
>            Priority: Major
>         Attachments: image-2022-10-19-01-22-06-664.png
>
>
> This is a big performance bug. I have 45,000 Markdown files to render, and it takes close to an hour right now in my CI/CD job.
> I realized that on every single rendering file, we are loading a resource:
> InputStream inputStream = DefaultSiteRenderer.class.getResourceAsStream( "/META-INF/"
>             + "maven/org.apache.maven.doxia/doxia-site-renderer/pom.properties" );
> If we only move this to load one time in a static initialization block, performance significantly improves.
> Change to DefaultSiteRenderer:
> !image-2022-10-19-01-22-06-664.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)