Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (109 - 111 of 3866)

Ticket Resolution Summary Owner Reporter
#1499 Fixed Performance increase to internal __FTP_ListToArray() Jpm Beege
Description

In the current internal function _FTP_ListToArray, every time a new item is added to the array, the array is Resized by only +1, which can be a major performance hit when getting directory listing of large numbers. If we instead Resize by ubound*2, and then trim unused slots at the end of function, we can avoid a lot or resizing. I learned this method from the original _filelisttoarray() func.

I have included a example with changes to the function and a demonstration of the new vs. old. I have put a set of XXXXXXXXXXXXXXXXXXXXXXXXXXX around any lines that I changed or added. Not that many changes were needed since the function already kept track of array size in index $array[0]. Thank you for your consideration and hard work in creating this wonderful language.:)

#1500 Fixed _FTP_DirSetCurrent() Return Value Jpm Beege
Description

The current documentation of _FTP_DirSetCurrent() states that the return value is the Directory Name when it actually returns True if successfully set.

#1970 Fixed Bug added to internal __FTP_ListToArray() guinness Beege
Description

Very sorry about this but some time back I submitted a request here http://www.autoitscript.com/trac/autoit/ticket/1499 that had a mistake in it. I thought it got caught before being added to the beta but it didnt. The bug is that if the user specifys only files or only dirs to be returned, nothing gets returned due to incorrect rediming at the end. Attached is the function pulled from the beta udf with all changes/fixs surrounded in xxxxxxxxxxxxxxxx's. The example verifys all possible return methods are working correctly this time and demonstrates current broken code. Again Im very sorry about this.

Note: See TracQuery for help on using queries.