yvvan abandoned this revision.
yvvan added a comment.
It was the wrong direction
https://reviews.llvm.org/D35200
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
joerg added a comment.
The primary reason for using mmap is not so much performance, but reduced
memory foot print.
https://reviews.llvm.org/D35200
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listin
ilya-biryukov added a comment.
In https://reviews.llvm.org/D35200#844132, @yvvan wrote:
> The files might also be removed.
> I checked that with qtcreator from git. Switching to the different branch
> started reparse of some files.
> When I frequently switched branches back and forth I got loc
yvvan added a comment.
The files might also be removed.
I checked that with qtcreator from git. Switching to the different branch
started reparse of some files.
When I frequently switched branches back and forth I got lock issues. With mmap
turned off this did not happen.
https://reviews.llvm.
ilya-biryukov added a comment.
This looks strange. AFAIK, memory mapping files in Windows does no 'locking' by
itself. I've just written a small program to check that it's possible to modify
the file, memory-mapped using Win32 API.
What is specific problem you ran into?
https://reviews.llvm.or
nik added a reviewer: ilya-biryukov.
nik added a comment.
Ping.
I guess locking the file less helps also clangd?!
https://reviews.llvm.org/D35200
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo
yvvan added a comment.
What do you think about that change?
https://reviews.llvm.org/D35200
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yvvan created this revision.
Memory mapping does not make llvm faster (at least I don't see any difference).
It also allows llvm not to lock files which is sometimes quite important.
https://reviews.llvm.org/D35200
Files:
lib/Support/MemoryBuffer.cpp
Index: lib/Support/MemoryBuffer.cpp