similar to: serialize() takes too long when serializing to a raw vector

Displaying 20 results from an estimated 300 matches similar to: "serialize() takes too long when serializing to a raw vector"

2012 Oct 17
3
aggregate function not working?
The aggregate function for some reason will now work for me. The error I'm getting is: "Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list?" agPriceList=aggregate(PriceList$Size, list(PriceList$bandNum),sum) *Price list dataframe:* dput(PriceList) structure(list(Price = c(0, 8.18, 8.27, 10.42, 10.5, 10.6, 11.13,
2011 Aug 17
2
An example of very slow computation
This message is about a curious difference in timing between two ways of computing the same function. One uses expm, so is expected to be a bit slower, but "a bit" turned out to be a factor of >1000. The code is below. We would be grateful if anyone can point out any egregious bad practice in our code, or enlighten us on why one approach is so much slower than the other. The problem
2009 Nov 27
4
[Bug 25319] New: KSnapshot in allocation mode crashes X
http://bugs.freedesktop.org/show_bug.cgi?id=25319 Summary: KSnapshot in allocation mode crashes X Product: xorg Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at lists.freedesktop.org
2003 Nov 21
1
Using log() on an openMosix cluster
Hi all, I was hoping to get some advice about a problem that I realize will be difficult to reproduce for some people. I'm running R 1.7.1 on an openMosix (Linux) cluster and have been experiencing some odd slow-downs. If anyone has experience with such a setup (or a similar one) I'd appreciate any help. Here's a simplified version of the problem. I'm trying to run the
2010 Sep 26
4
How to update an old unsupported package
Hi all, I have a package that is specific to a task I was repetitively using a few years ago. I now needed to run it again with new data. However I am told it was built with an older version or R and will not work. How can I tweak the package so it will run on 11.1? It was a one-off product and has not been maintained. Is there a way to "unpackage" it and repackage it to work? I
2011 Aug 04
3
persp()
Hello I am trying to draw a basic black and white map of two European countries. After searching some key words in google and reading many pages I arrived to the conclusion that persp() could be used to draw that map. I have prepared three small example files, which are supposed to be the files required for running that function. xvector is a vector with the longitudes yvector is a vector with
2007 Jul 10
4
type III ANOVA for a nested linear model
Hello, is it possible to obtain type III sums of squares for a nested model as in the following: lmod <- lm(resp ~ A * B + (C %in% A), mydata)) I have tried library(car) Anova(lmod, type="III") but this gives me an error (and I also understand from the documentation of Anova as well as from a previous request (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/64477.html) that it is
2009 Apr 14
3
scatterplot3d
Dear R-help, I am having trouble with your scatterplot3d program. For help with this problem I was directed to your address by Martin Maechler at " r-core-bounces at r-project.org." I'm also sending a CC to " r-core-owner at r-project.org" as I'm not yet certain of the proper address to use for this. I have R version 2.8.1 and have downloaded 'scatterplot3d.'
2017 May 09
1
答复: The memory maybe leak in samba 4.3.11
On Tue, May 09, 2017 at 02:59:51AM +0000, Zhangxiaoxu via samba-technical wrote: > Hi, > Thanks a lot. > > Use the valgrind, we found the stack of the malloc as below, so, maybe it is not memory leak. > ==2796353== 36,334,440 bytes in 100,929 blocks are still reachable in loss record 774 of 774 > ==2796353== at 0x4C2AB80: malloc (in
2006 Aug 11
0
serializing / deserializing active records with children
What is the best approach to serialize / deserialize full blown active record objects with multiple child objects (one-to-many relations). YAML::load(), YAML::dump() almost work :) -> loaded object has children (I see them in breakpoint session: "puts parent"), but when I am accessing children (e.g: "puts parent.emails") array becomes cleared - I guess rails are trying to
2006 Jul 10
1
Serializing objects to the database
I have a rails app that has a search mechanism with a bunch of options. I''ve consolidated all the search parameters into a SearchQuery class. Now I want to store searches to be recalled later. I searched the wiki but couldn''t find any pages about how to do this best. I''m worried that if I just serialize the object I won''t be able to change the class without
2006 Jan 30
0
Serializing has_many associations and ActiveRecord objects
Is it possible to serialize ActiveRecord objects and ActiveRecord children to XML? -- Posted via http://www.ruby-forum.com/.
2007 Sep 07
0
De-serializing attribute gives YAML::Objects?
I wonder rails 1.2.3 cannot deserialize attribute (objects) correctly but give YAML::Object. Are there any workarounds or tricks to solve the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 May 13
1
Serializing AR Objects
I need to serialize a composite AR model and save it to a database field. Reading up on Ruby''s Marshaling, it seems there could be problems with the version numbering thing of the default dump/load methods. As I understand it, Ruby internally marks the serialized data with the current Ruby language version, and when loading that data, if the major version is changed, the loading
2018 May 12
0
Serializing a single function to disk
I would like to generate a free function that can be written to disk and then I can mmap it later. The function I'm going to generate is highly restrictive. It will use the host C calling convention. It features no global variables, no data references outside parameters and local variables.The parameters to the function are all pointer sized integers. No exceptions support required. Call
2008 Dec 19
1
[LLVMdev] [PATCH] Serializing a module to a memory location
Hi, I had to serialize a module to a memory location but I couldn't find a way to do that with the current API. The attached patch adds a function doing that. Cheers, Lukasz -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-bitstream-writer.patch Type: application/octet-stream Size: 2913 bytes Desc: not available URL:
2001 Jul 26
0
marshalling/serializing of R objects for later execution?
I know that this was a topic in March at DSC, but I was suffering from a nasty migraine that prevented me from paying as much attention as I ought to. What's the current state-of-the-art regarding packaging/serialization of R objects? Or is it still vaporish (i.e. nothing built)? I'm a bit more interested in functions/closures than "ordinary data". best, -tony -- A.J.
2015 Mar 17
0
Reduce memory peak when serializing to raw vectors
Jorge, what you propose is not possible because the size of the output is unknown, that's why a dynamically growing PStream buffer is used - it cannot be pre-allocated. Cheers, Simon > On Mar 17, 2015, at 1:37 PM, Martinez de Salinas, Jorge <jorge.martinez-de-salinas at hp.com> wrote: > > Hi, > > I've been doing some tests using serialize() to a raw vector: >
2015 Mar 17
0
Reduce memory peak when serializing to raw vectors
Hi, I've been doing some tests using serialize() to a raw vector: df <- data.frame(runif(50e6,1,10)) ser <- serialize(df,NULL) In this example the data frame and the serialized raw vector occupy ~400MB each, for a total of ~800M. However the memory peak during serialize() is ~1.2GB: $ cat /proc/15155/status |grep Vm ... VmHWM: 1207792 kB VmRSS: 817272 kB We work with very
2015 Mar 17
0
Reduce memory peak when serializing to raw vectors
In principle, yes (that's what Rserve serialization does), but AFAIR we don't have the infrastructure in place for that. But then you may as well serialize to a connection instead. To be honest I don't see why you would serialize anything big to a vector - you can't really do anything useful with that ... (what you couldn't do with the streaming version). Sent from my iPhone