Anyway, it doesn't change the problem that the loading has a bug somewhere. Even if it's the same behavior for FP8 and FP9. Because the classic merge from the same scene is of course completely bug-free.
I know. But initially i though it was a problem with FP9, so we checked all differences in the code which would cause it.
But for some reason, in our tests there is not difference between both versions. It takes about 20 Gb. RAM.
Anyway as you said, something is not correct. It should not take so much memory.
Therefore, once we know the problem is not specifically of FP9, i checked the Library loading process.
And i found it seems caused by some issue with XRef and V-Ray proxies: we could reproduce it without Forest, just loading 100 proxies as XRef, using maxscript:
for i = 1 to 100 do
(
objName = "VRayProxy_Teapot" + (formattedPrint i format:"3.3d")
objXRefMgr.AddXRefItemsFromFile "C:\\tmp\\ProxiesTest\\VRayTeapotsHighRAM.max" objNames:#(objName)
)
I just reported the problem to ChaosGroup. I hope they find the cause.