[go-nuts] Re: Go on processor without SSE

2018-01-12 Thread krolaw
See: https://github.com/golang/go/issues/5266 Essentially, you need to recompile go with: export GO386=387 export GOOS=linux export GOARCH=386 Then you can successfully build using the same. (This allowed go to work on my Alix board.) Worked for Go 1.1beta, might still work now. On Saturday,

Re: [go-nuts] Re: try to avoid additional memory allocations

2017-11-10 Thread krolaw
You could avoid allocations altogether by reusing the same byte array and passing it to the function. To retain readability, use a buffer and fmt.Fprintf On Saturday, 11 November 2017 04:00:48 UTC+13, Vasiliy Tolstov wrote: > > Thanks, i know that optimization can lead obscurity, but for

[go-nuts] Re: try to avoid additional memory allocations

2017-11-09 Thread krolaw
On Friday, 10 November 2017 13:52:51 UTC+13, krolaw wrote: > > func oid2filepath(cfg *Config, oID uint64) string { >return fmt.Sprintf("%s%c%x%c%016x", cfg.WorkDir, filepath.Separator, > oid2vid(oID), filepath.Separator, oID) > } > > On Friday, 10 Novembe

[go-nuts] Re: try to avoid additional memory allocations

2017-11-09 Thread krolaw
func oid2filepath(cfg *Config, oID uint64) string { return fmt.Sprintf("%s%c%x%c%016x", cfg.WorkDir, filepath.Seperator, oid2vid(oID), filepath.Seperator, oID) } On Friday, 10 November 2017 09:58:03 UTC+13, Vasiliy Tolstov wrote: > > Hi. I have server that read/write data to many files (each

[go-nuts] Go Optimizations for IO Intensive programs

2017-02-11 Thread krolaw
Just confirming, you are uploading each file as you're downloading it. Not downloading completely, then decompressing completely, followed by uploading. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Cloudstore default bucket name - data race?

2016-11-08 Thread krolaw
Hopefully someone can explain where my understanding of dataraces is wrong. As an example, I'd like to use the appengine cloudstorage example: https://cloud.google.com/appengine/docs/go/googlecloudstorageclient/app-engine-cloud-storage-sample#specifying_the_cloud_storage_bucket When a web

[go-nuts] Re: My Computer compiles go slower than my friends worse laptop

2016-11-06 Thread krolaw
That XPS laptop has an SSD drive. Does your desktop? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options,

[go-nuts] How to access RegisterFunc when accessing mattn/go-sqlite3 via database/sql?

2016-08-11 Thread krolaw
Hi, I'm using github.com/mattn/go-sqlite3 through database/sql. I want to register a go func with sqlite, for the purposes of converting timestamps from UTC to the current locale of the current user. This would then allow me to GROUP records together depending on which "day" the records