Github user davisp commented on the issue:
https://github.com/apache/couchdb-couch/pull/217
Also for posterity, someone else was looking at this and made this comment:
>The reason for the high cost of filename:rootname is that it is recursive,
and the number of loops
it runs is proportional to the string length that is passed in as
parameter. This is why we see the number of calls to it is very high.
I thought that was an interesting note so I've copied it here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---