Skip to content

Conversation

@LocalIdentity
Copy link
Contributor

Description of the problem being solved:

Opening the exporter was wasting so much time in 2 lines
self.oozPath = io.popen("cd"):read('*l'):gsub('\r?', '') .. "\\ggpk\\"
Which opened a cmd windows to grab the current directory
and
local datFiles = scanDir(self.oozPath .. "Data\\Balance\\", '%w+%.datc64$')
which opened a cmd to scan the directory for the dat files we export

The first one is replaced with GetWorkDir()
and the second one is replaced with a lookup of the location from the list in GetNeededFiles 12 lines below

Before screenshot:

image

After screenshot:

image

Opening the exporter was wasting so much time in 2 lines
`self.oozPath = io.popen("cd"):read('*l'):gsub('\r?', '') .. "\\ggpk\\"`
Which opened a cmd windows to grab the current directory
and
`local datFiles = scanDir(self.oozPath .. "Data\\Balance\\", '%w+%.datc64$')`
which opened a cmd to scan the directory for the dat files we export

The first one is replaced with `GetWorkDir()`
and the second one is replaced with a lookup of the location from the list in `GetNeededFiles` 12 lines below
@LocalIdentity LocalIdentity added pob1 Should also be merged into PoB1 Repo technical Hidden from release notes labels Dec 17, 2025
@LocalIdentity LocalIdentity merged commit 3985f0e into dev Dec 17, 2025
2 of 3 checks passed
@LocalIdentity LocalIdentity deleted the add_exporter-open-speedup branch December 17, 2025 23:01
github-actions bot pushed a commit to PathOfBuildingCommunity/PathOfBuilding that referenced this pull request Dec 17, 2025
github-actions bot pushed a commit to PathOfBuildingCommunity/PathOfBuilding that referenced this pull request Dec 17, 2025
LocalIdentity added a commit to PathOfBuildingCommunity/PathOfBuilding that referenced this pull request Dec 17, 2025
* Apply changes from PathOfBuildingCommunity/PathOfBuilding-PoE2#1638

* Fix merge conflict

---------

Co-authored-by: LocalIdentity <[email protected]>
Co-authored-by: LocalIdentity <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pob1 Should also be merged into PoB1 Repo technical Hidden from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants