ResourceSnippetsMap.getSnippet is syncronized

Description

maybe this can be improved? especially when inspect is set to never?

also the max size isn’t very efficient ResourceSnippetsMap(1024, 128); 767 is much effective

at java.io.WinNTFileSystem.getLastModifiedTime0(java.base@21.0.5/Native Method) at java.io.WinNTFileSystem.getLastModifiedTime(java.base@21.0.5/WinNTFileSystem.java:501) at java.io.File.lastModified(java.base@21.0.5/File.java:974) at lucee.commons.io.res.type.file.FileResource.lastModified(FileResource.java:677) at lucee.commons.io.res.util.ResourceSnippetsMap.calcKey(ResourceSnippetsMap.java:75) at lucee.commons.io.res.util.ResourceSnippetsMap.getSnippet(ResourceSnippetsMap.java:59) - locked <0x000000064fe6aa18> (a lucee.commons.lang.SerializableObject) at lucee.runtime.debug.DebuggerImpl.getEntry(DebuggerImpl.java:245) at lucee.runtime.engine.DebugExecutionLog._log(DebugExecutionLog.java:48) at lucee.runtime.engine.ExecutionLogSupport.end(ExecutionLogSupport.java:109) at lucee.runtime.PageContextImpl.exeLogEnd(PageContextImpl.java:3840) at tests.json_cfm$cf$4.call(/tests/json.cfm:7) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1063) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:987) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:213) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:41) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2784) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2771) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2742) at lucee.runtime.functions.system.InternalRequest.call(InternalRequest.java:135) at index_cfm$cf.udfCall(/index.cfm:121) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:357) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:219) at lucee.runtime.type.EnvUDF.call(EnvUDF.java:137) at lucee.runtime.concurrency.UDFCaller2.call(UDFCaller2.java:89) at lucee.runtime.concurrency.UDFCaller2.call(UDFCaller2.java:40) at java.util.concurrent.FutureTask.run(java.base@21.0.5/FutureTask.java:317) at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@21.0.5/ThreadPoolExecutor.java:1144) at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@21.0.5/ThreadPoolExecutor.java:642) at java.lang.Thread.runWith(java.base@21.0.5/Thread.java:1596) at java.lang.Thread.run(java.base@21.0.5/Thread.java:1583)

Environment

None

Activity

Show:

Zac Spitzer 25 December 2024 at 13:48
Edited

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 25 December 2024 at 13:35
Updated 25 December 2024 at 13:49

Flag notifications