Issues
- regression: directoryList is sllloow on unix systemsLDEV-5006Resolved issue: LDEV-5006Zac Spitzer
- "DirectoryList" and differences sorting by name between Lucee 5 and Lucee 6LDEV-4747Michael Offner
- directoryList() - UDF filter arguments incompatibility with ACFLDEV-4393Resolved issue: LDEV-4393Pothys - MitrahSoft
- Edge case issue with pathing logic breaks adminLDEV-3954Resolved issue: LDEV-3954Pothys - MitrahSoft
- Allow directoryList() filter closure to short circuit directory recursionLDEV-3700
- Allow optimization of directoryList() to only get data neededLDEV-3699
- directoryList( listinfo="path" ) spends lots of time getting data from the file system it doesn't useLDEV-3698Resolved issue: LDEV-3698
- directoryList see directories as filesLDEV-3614Pothys - MitrahSoft
- DirectoryList listInfo="path" is slowLDEV-3394Resolved issue: LDEV-3394Zac Spitzer
- Incompatibility - when using directoryList() with listinfo="name"LDEV-3188Pothys - MitrahSoft
- Lucee Calls the S3 API Twice for directoryList("myS3Path")LDEV-2630Michael Offner
- Recursive directoryList Sort is Depth First instead of Breadth FirstLDEV-2152Resolved issue: LDEV-2152Igal Sapir
- mode is empty string in query result of directoryList and cfdirectoryLDEV-2118Resolved issue: LDEV-2118Michael Offner
- Enhance closure filter on directory copyLDEV-1542Resolved issue: LDEV-1542
- Pass type to directorylist and cfdirectory filter closureLDEV-1247Resolved issue: LDEV-1247Zac Spitzer
15 of 15
regression: directoryList is sllloow on unix systems
Fixed
Description
Environment
None
Attachments
2
is caused by
relates to
Details
Assignee
Zac SpitzerZac SpitzerReporter
Zac SpitzerZac SpitzerPriority
NewFix versions
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
Sprint
NoneAffects versions
Details
Details
Assignee
Zac Spitzer
Zac SpitzerReporter
Zac Spitzer
Zac SpitzerPriority
Fix versions
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
Sprint
None
Affects versions
Created 10 July 2024 at 12:26
Updated 29 December 2024 at 10:24
Resolved 10 July 2024 at 15:56
Activity
Show:
Zac Spitzer10 July 2024 at 15:56
much better!!!
Michael Offner10 July 2024 at 15:42
Michael Offner10 July 2024 at 15:16
problem is when query for directoryList is created, Lucee validates the type of the column “mode“ what causes it to be called.
lucee-1 | java.lang.Exception: Stack trace
lucee-1 | at lucee.aprint.ds(aprint.java:67)
lucee-1 | at lucee.aprint.ds(aprint.java:94)
lucee-1 | at lucee.commons.io.res.type.file.FileResource.getMode(FileResource.java:396)
lucee-1 | at lucee.commons.io.res.util.ModeObjectWrap.toString(ModeObjectWrap.java:65)
lucee-1 | at lucee.commons.io.res.util.ModeObjectWrap.castToString(ModeObjectWrap.java:115)
lucee-1 | at lucee.runtime.op.Decision.isString(Decision.java:979)
lucee-1 | at lucee.runtime.op.Decision.isCastableToString(Decision.java:991)
lucee-1 | at lucee.runtime.type.QueryColumnUtil.reDefineString(QueryColumnUtil.java:189)
lucee-1 | at lucee.runtime.type.QueryColumnUtil.reDefineType(QueryColumnUtil.java:87)
lucee-1 | at lucee.runtime.type.QueryColumnImpl.reDefineType(QueryColumnImpl.java:455)
lucee-1 | at lucee.runtime.type.QueryColumnImpl.set(QueryColumnImpl.java:339)
lucee-1 | at lucee.runtime.type.QueryImpl.setAt(QueryImpl.java:1265)
lucee-1 | at lucee.runtime.type.QueryImpl.setAt(QueryImpl.java:1256)
lucee-1 | at lucee.runtime.tag.Directory._fillQueryAll(Directory.java:600)
lucee-1 | at lucee.runtime.tag.Directory.actionList(Directory.java:479)
lucee-1 | at lucee.runtime.functions.file.DirectoryList._call(DirectoryList.java:57)
lucee-1 | at lucee.runtime.functions.file.DirectoryList.call(DirectoryList.java:51)
Michael Offner10 July 2024 at 13:59
if not the case we simply roll back that change
Michael Offner10 July 2024 at 13:59
@Zac Spitzer mode should be only read when it is also read, make sure you don’t have for example a dump of a directory somewhere, that would make it slow of course, but as long you don’t read that value it should have no effect. please make sure that is not the case.
there's some huuuge performance regression on docs
https://github.com/lucee/lucee-docs/actions/runs/8648128224/job/23711210824#step:7:298 6.0.2.1-SNAPSHOT 3.4s
https://github.com/lucee/lucee-docs/actions/runs/9873420804/job/27265642463#step:7:223 6.1.0.236-SNAPSHOT 176s
locally the import on my windows machine takes 10s with java 11 or 21
on my mac, same problem occurs
https://github.com/lucee/lucee-docs/blob/master/api/reference/ReferenceImporter.cfc#L290 takes 25ms or so per call, previously sub millsecond
var q_files = DirectoryList( path=fileDirectory, recurse=false, listinfo="query", type="all" );