Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-12 Thread William A Rowe Jr
On Tue, Jun 11, 2019 at 5:38 PM William A Rowe Jr wrote: > On Tue, Jun 11, 2019 at 1:44 PM Branko Čibej wrote: > >> We either reserve about 2x buffers for file name transliteration in heap >> per thread, or we use the thread stack. As long as we trust that our utf-8 >> to ucs-2 logic is rock

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-11 Thread William A Rowe Jr
On Tue, Jun 11, 2019 at 1:44 PM Branko Čibej wrote: > We either reserve about 2x buffers for file name transliteration in heap > per thread, or we use the thread stack. As long as we trust that our utf-8 > to ucs-2 logic is rock solid and the allocations and limits are correctly > coded, this

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-11 Thread Ivan Zhakov
On Tue, 11 Jun 2019 at 17:14, William A Rowe Jr wrote: > > On Tue, Jun 11, 2019 at 4:15 AM Branko Čibej wrote: >> >> On 07.06.2019 21:58, William A Rowe Jr wrote: >> > I think the optimal way is to allocate a pair of apr thread-specific >> > wchar buffers in each thread's pool on startup, and

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-11 Thread William A Rowe Jr
On Tue, Jun 11, 2019 at 9:14 AM William A Rowe Jr wrote: > On Tue, Jun 11, 2019 at 4:15 AM Branko Čibej wrote: > >> On 07.06.2019 21:58, William A Rowe Jr wrote: >> > I think the optimal way is to allocate a pair of apr thread-specific >> > wchar buffers in each thread's pool on startup, and

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-11 Thread William A Rowe Jr
On Tue, Jun 11, 2019 at 4:15 AM Branko Čibej wrote: > On 07.06.2019 21:58, William A Rowe Jr wrote: > > I think the optimal way is to allocate a pair of apr thread-specific > > wchar buffers in each thread's pool on startup, and use those > > exclusively per-thread for wchar translations. We

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-11 Thread Branko Čibej
On 07.06.2019 21:58, William A Rowe Jr wrote: > I think the optimal way is to allocate a pair of apr thread-specific > wchar buffers in each thread's pool on startup, and use those > exclusively per-thread for wchar translations. We could be looking at > 64k/thread exclusively for name

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-07 Thread William A Rowe Jr
I think the optimal way is to allocate a pair of apr thread-specific wchar buffers in each thread's pool on startup, and use those exclusively per-thread for wchar translations. We could be looking at 64k/thread exclusively for name translation, but it doesn't seem unreasonable. The alternative

Re: svn commit: r1860745 - /apr/apr/trunk/file_io/win32/dir.c

2019-06-07 Thread Greg Stein
On Fri, Jun 7, 2019 at 6:02 AM wrote: >... > \@@ -114,116 +93,73 @@ APR_DECLARE(apr_status_t) apr_dir_read(a > { > apr_status_t rv; > char *fname; > +apr_wchar_t wdirname[APR_PATH_MAX]; > That's a crazy huge stack frame. I recognize we were doing this before this commit, but is