Search found 194 matches

by fishgod
16 Sep 2019 20:35
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

There is at least one issue with the new warning (refering to the discussion going on here: https://www.xyplorer.com/xyfc/viewtopic.php?f=2&t=20928&p=172636) Setup a custom column with a script like this: include_once 'lib.inc.xys'; return f1(); The lib.inc.xys -file: function f1() { return 'f1'; } ...
by fishgod
16 Sep 2019 19:19
Forum: Bug Reports
Topic: SC load with fc bug on calling sub
Replies: 10
Views: 140

Re: SC load with fc bug on calling sub

The new warning is a result of the discussion from this thread: viewtopic.php?f=3&t=20889&start=15#p172617

I also get this warning with my script, everything looks correct so far. Let me try to build a minimal example that causes the behaviour.
by fishgod
16 Sep 2019 09:56
Forum: Wishes
Topic: Improve the "What’s New" page...
Replies: 8
Views: 179

Re: Improve the "What’s New" page...

OK, but that only makes a difference on looooong pages (like 10 screens or more) and thats what you suggest to change... No offence but I'm still not getting it.
by fishgod
16 Sep 2019 08:11
Forum: Bug Reports
Topic: SC load with fc bug on calling sub
Replies: 10
Views: 140

SC load with fc bug on calling sub

The resource-type fc introduced in v20.40.0005 causes problems when calling a sub in the loaded script when its loaded from cache: Execute this script load-1.xys "Test Cached Load" load 'load-2.xys', , 'fc'; load 'load-2.xys', , 'fc'; load-2.xys "Second script : main" sub '_sub'; "_sub" msg "First T...
by fishgod
16 Sep 2019 00:11
Forum: Wishes
Topic: Improve the "What’s New" page...
Replies: 8
Views: 179

Re: Improve the "What’s New" page...

ghost zero wrote:
12 Sep 2019 11:39
[...] makes it very hard to drag the scrollbar and scroll.
Weirdest wish I've ever read, really, who drags scrollbar?
XYusers use input devices effiently. Use the mouse wheel or keyboard if you are unable to exactly move your mouse :P
by fishgod
15 Sep 2019 20:51
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

It is assumed that a same-named function from a same-named resource is identical. Very reasonably. Your formulation indicate, that this might be different for different files. In a rational design nobody would do this on purpose, but it might happen by accident when multiple scripts are combined. W...
by fishgod
15 Sep 2019 14:21
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

Thank you for fixing it. That raises a new question that come in my mind in the last days: Does redefining a function with the same name is: ignored overwrites the existing one raises a warning/error (obviously not till now, maybe this would be a good thing) Of cause, that info should be added to th...
by fishgod
15 Sep 2019 09:13
Forum: Bug Reports
Topic: Unquoating and Trimming of Values in XYplorer.ini
Replies: 1
Views: 53

Unquoating and Trimming of Values in XYplorer.ini

I have set the UnitBytes -Tweak to include spaces (by that the numbers are aligned with KB, MB and so. see image) xy-sizecol-b.png But on saving the config, the value gets unquoated, and next time it gets trimmed. I'm not sure if it is the desired behaviour, that values mutate 2 times, over save/loa...
by fishgod
15 Sep 2019 08:50
Forum: Wishes
Topic: New Filesize Format: "Flexible (short)"
Replies: 1
Views: 81

New Filesize Format: "Flexible (short)"

I love the flexible format for size-column, but to keep things short, I would love even more to have it more condense: Jump to next unit when there are more than 3 digits before the decimal-point (when >1000, instead of >1024). Example, display this: 1,13 GB 998,41 MB 1.003,54 MB <-- as this (in the...
by fishgod
14 Sep 2019 17:24
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

I appreaciate the time you allready invested, but I don't think it has something to do with mediainfo.exe, because the workaround above does the same calls to mediainfo.exe without the speed-degradation. As far as I can say from observation, the thing is the repeated use of load causes something. Th...
by fishgod
13 Sep 2019 22:29
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

The thing is, that I don't understand why the whole script execution-speed (simple string-manipulation as shown above) is affected by repeatedly loading a big script (or a script that includes other big scripts, even with include_once , as shown in above post) I did another test and inserted the cod...
by fishgod
12 Sep 2019 01:49
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

Finally found a usable workaround. I didn't know (until now), that I can replace include / include_once with load for the case the file to be included contains only function-definitions to build a conditional include. So this is my callFunction() now, that allows: to call a function named by a varia...
by fishgod
12 Sep 2019 00:19
Forum: Wishes
Topic: Alternate Data Streams
Replies: 6
Views: 530

Re: Alternate Data Streams

The main problem with ADS is that they are very easily removed by the external software. This happens if you create a new file with the contents of the old file, and than remove the old file (which removes the ADS attached to it) Maybe the applications you mentioned do exactly that to implement a s...
by fishgod
11 Sep 2019 23:38
Forum: Bug Reports
Topic: Missing entries in Context Menu on Overlong Pathes
Replies: 2
Views: 90

Re: Missing entries in Context Menu on Overlong Pathes

OK, than I have to live with that.
I wanted to access the "Mediainfo" entry from the shell-menu.
I added a ctb for that, only to find out that mediainfo also does not accept overlong pathnames as command line parameter :lol: .
by fishgod
11 Sep 2019 23:32
Forum: Tips & Tricks, Questions & Answers
Topic: Scripting Memory-Leak / Speed Degrading
Replies: 32
Views: 581

Re: Scripting Memory-Leak / Speed Degrading

I did a lot of testing and observation, and I think I now know the exact source of the slowdown. I run this on a folder with 66 Media (MKV-Video) Files: (the more, the slower it gets) ::load 'xy-slowdown' xy-slowdown.xys function parseFolder($path) { $files = listfolder($path, "*.mkv"); $log = ""; f...