Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-12 Thread Ian Lance Taylor
On Tue, Jul 12, 2016 at 1:05 AM, wrote: > GCC slow, not GC. Sorry, my apologies for misreading. Ian > вторник, 12 июля 2016 г., 1:52:01 UTC+3 пользователь Ian Lance Taylor > написал: >> >> On Mon, Jul 11, 2016 at 1:25 PM, wrote: >> > Ohh that slow gcc. Sad. >> >> The GC in general is qui

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-12 Thread sphilippov
GCC slow, not GC. Yes, Go's GC is quite fast and I like it alot, but there is cases where non-generational GC performs poorly, for example large nets of short living objects. I hope the new TOC will improve situation. вторник, 12 июля 2016 г., 1:52:01 UTC+3 пользователь Ian Lance Taylor написал

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Ian Lance Taylor
On Mon, Jul 11, 2016 at 1:25 PM, wrote: > Ohh that slow gcc. Sad. The GC in general is quite fast. If you have specific examples where the GC does poorly, please open issues for them with test cases. Thanks. Ian > понедельник, 11 июля 2016 г., 23:03:07 UTC+3 пользователь Ian Lance Taylor

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
Ohh that slow gcc. Sad. понедельник, 11 июля 2016 г., 23:03:07 UTC+3 пользователь Ian Lance Taylor написал: > > On Mon, Jul 11, 2016 at 9:11 AM, > > wrote: > > Thank for answer but I'm already implemented portable unmanaged memory > pool > > (https://github.com/ardente/goal/blob/master/g

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Ian Lance Taylor
On Mon, Jul 11, 2016 at 9:11 AM, wrote: > Thank for answer but I'm already implemented portable unmanaged memory pool > (https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm just > looking for standard direct analogue (incliding mapping of fd -1) of unix's > syscall.Mmap for windows.

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
Exactly. I don't know why I was misunderstood because topic title is "How to allocate memory from OS..." and in the first message I mentioned VirtualAllloc and mmap is used to obtain memory from os instead of sbrk in most unix clibs. About discussion - I think patch implementing syscall.Mmap on

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Konstantin Khomoutov
On Mon, 11 Jul 2016 09:11:14 -0700 (PDT) sphilip...@gmail.com wrote: > Thank for answer but I'm already implemented portable unmanaged > memory pool > (https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm > just looking for standard direct analogue (incliding mapping of fd > -1) of uni

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
Thank for answer but I'm already implemented portable unmanaged memory pool (https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm just looking for standard direct analogue (incliding mapping of fd -1) of unix's syscall.Mmap for windows. Looks like there is none. There is some rationa

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Konstantin Khomoutov
On Mon, 11 Jul 2016 00:07:11 -0700 (PDT) sphilip...@gmail.com wrote: > I can allocated memory from OS using syscall.Mmap(-1...) on Unix and > VirtualAlloc on Windows. But may be there is standard and compatible > way to do this? There are none, and I'm pretty sure there simply can't be any: this

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
Thanks for info but I'm looking for standard way (package from runtime library or from golang.org/x). I'm already have a custom VAlloc/VFree implementation for windows and unix and now curious is there a standard way that I missed. > I unable to find standard mmap for windows in Go library, tha

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Jan Mercl
On Mon, Jul 11, 2016 at 4:37 PM wrote: > I unable to find standard mmap for windows in Go library, that was originial question. Use case is processing of large (several millions of nodes) trees. I have not used it yet: https://github.com/edsrzf/mmap-go -- -j -- You received this message bec

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
I unable to find standard mmap for windows in Go library, that was originial question. Use case is processing of large (several millions of nodes) trees. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop re

Re: [go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread Sam Whited
On Mon, Jul 11, 2016 at 2:07 AM, wrote: > I can allocated memory from OS using syscall.Mmap(-1...) on Unix and > VirtualAlloc on Windows. But may be there is standard and compatible way to > do this? In general, the Go philosophy is that the runtime handles memory allocation and this isn't somet

[go-nuts] How to allocate memory from OS in compatible way.

2016-07-11 Thread sphilippov
Hi dear gophers! I can allocated memory from OS using syscall.Mmap(-1...) on Unix and VirtualAlloc on Windows. But may be there is standard and compatible way to do this? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this