You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sam Halliday (JIRA)" <ji...@apache.org> on 2016/02/01 17:58:39 UTC

[jira] [Commented] (VFS-593) duplicated Strings inside WindowsLocalFile

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

Sam Halliday commented on VFS-593:
----------------------------------

we're just going to monkey patch this in our application. Sorry, can't share the heap dump, but should be trivial for you to reproduce.

> duplicated Strings inside WindowsLocalFile
> ------------------------------------------
>
>                 Key: VFS-593
>                 URL: https://issues.apache.org/jira/browse/VFS-593
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Sam Halliday
>
> I did a YourKit analysis of a heapdump when running ENSIME, which uses VFS2, and I found several GB (25%) of the heap was wasted on duplicated strings within VFS2.
> This could be averted by using `.intern()` on Strings that represent paths.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)