Giter VIP home page Giter VIP logo

Comments (8)

erthink avatar erthink commented on June 15, 2024

@georgehazan, у меня нет XP чтобы по-завершении проверить совместимость. Поможете?

В идеале это-бы прикрутить к текущему CI на AppVeyor, но у меня не получилось добиться сборки со старым SDK (всё равно были доступны определения из последующих версий).

Кроме этого, нужно синхронизировать все (даже минимальные) ваши правки с mainstream.

from libmdbx.

georgehazan avatar georgehazan commented on June 15, 2024

@leo-yuriev да, конечно помогу. у меня есть XP, можно пробовать в любой момент

Кроме этого, нужно синхронизировать все (даже минимальные) ваши правки с mainstream.

Правок две, одна чисто косметическая для сборки со старым SDK, вторая - для пробрасывания флага MDBX_EXCLUSIVE внутрь открытия файла.

from libmdbx.

erthink avatar erthink commented on June 15, 2024

@georgehazan, а можете выслать мне почтой таблицу экспорта из 32-битной версии ntdll.dll от Windows XP или Windows 2000?

dumpbin.exe /exports C:\Windows\System32\ntdll.dll > ntdll.exp

from libmdbx.

erthink avatar erthink commented on June 15, 2024

@wangjia184, please check currnt master branch.

from libmdbx.

wangjia184 avatar wangjia184 commented on June 15, 2024

Thanks @leo-yuriev
I am implementing a .NET standard assembly wrapping libmdbx v1.6.

Will this change merged to v0.1?
Is there any breaking changes in the exposed methods between v2.0(master) and v1.6(0.1 branch)

from libmdbx.

georgehazan avatar georgehazan commented on June 15, 2024

@leo-yuriev these changes might cause serious performance degradation, because memory management inside Universal CRT is much faster & safer than one in kernel32.dll (Local*). my advice is to keep both variants, i.e. libmdbx should call usual CRT functions, if macro MDBX_BUILD_DLL is not defined

from libmdbx.

erthink avatar erthink commented on June 15, 2024

Thanks @leo-yuriev
I am implementing a .NET standard assembly wrapping libmdbx v1.6.

Will this change merged to v0.1?

No, since it is not a bugfux, but enhancement.

Is there any breaking changes in the exposed methods between v2.0(master) and v1.6(0.1 branch)

Do you tried git diff v0.1.6 v0.2.0 -- mdbx.h?

from libmdbx.

erthink avatar erthink commented on June 15, 2024

@leo-yuriev these changes might cause serious performance degradation, because memory management inside Universal CRT is much faster & safer than one in kernel32.dll (Local*). my advice is to keep both variants, i.e. libmdbx should call usual CRT functions, if macro MDBX_BUILD_DLL is not defined.

In 30 years, Windows has not introduced acceptable dynamic memory management API?
Seems this is not an libmdbx issue ;)

Nevertheless, libmdbx calls memory-management functions relatively rare.
Most often such calls occurs for page allocation, but only when DB was opened without MDBX_WRITEMAP.
So, the overhead from Windows I/O will be 100-1000 times large than the memory management.

On the other hand, the switching to CRT functions should be available at least to measure an actual difference. So, d2bfb2e.

from libmdbx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.