Displaying 6 results from an estimated 6 matches for "max_history".
Did you mean:
makehistory
2007 Feb 26
1
some Mechanize objects never garbage collected?
Greetings,
I''m using Mechanize to scrap dozens of pages and have noticed the
size of my ruby process keeps growing. I set Mechanize.max_history to
0 with no effect on the memory use. I wrote a little test to show the
objects left on the heap after mechanizing a single page and then
doing a garbage collection. Sample list appended below. I can supply
the test code if it helps.
I did a little poking around the code but thought I wou...
2011 Mar 27
2
LinkedIn still not working?
...quire ''rubygems'' if VERSION < ''1.9''
require ''open-uri''
require ''nokogiri''
require ''mechanize''
agent = Mechanize.new
agent.read_timeout = 300
agent.open_timeout = 60
agent.max_history = 1 # Prevent excessive memory usage
agent.user_agent_alias = ''Mac Safari''
page = agent.get(https://www.linkedin.com/secure/login?trk=hb_signin)
form = page.form(''login'')
form.session_key = USERNAME
form.session_password = PASSWORD...
2019 Jan 25
0
[klibc:update-dash] input: Remove HETIO
...-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <termios.h>
-#include <ctype.h>
-#include <sys/ioctl.h>
-
-#include "input.h"
-#include "output.h"
-
-#include "hetio.h"
-
-
-#define MAX_HISTORY 15 /* Maximum length of the linked list for the command line history */
-
-#define ESC 27
-#define DEL 127
-
-static struct history *his_front = NULL; /* First element in command line list */
-static struct history *his_end = NULL; /* Last element in command line list */
-static struct termios...
2020 Mar 28
0
[klibc:update-dash] dash: input: Remove HETIO
...-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <termios.h>
-#include <ctype.h>
-#include <sys/ioctl.h>
-
-#include "input.h"
-#include "output.h"
-
-#include "hetio.h"
-
-
-#define MAX_HISTORY 15 /* Maximum length of the linked list for the command line history */
-
-#define ESC 27
-#define DEL 127
-
-static struct history *his_front = NULL; /* First element in command line list */
-static struct history *his_end = NULL; /* Last element in command line list */
-static struct termios...
2009 Mar 11
0
problem scrapping ATnT site (Matt White)
...quot;flowed"
>
> I recently wrote a script to read a web page over and over. I ran
> into an issue where the script would stop for seemingly an unknown
> reason.
>
> Turns out "browser history" was continually growing.
>
> The answer of course is to set agent.max_history to some lower number,
> in my case one.
>
> Have you ever considered implementing a warning or changing the
> default to max_history to something that won''t eat up memory?
>
> Maybe a note in GUIDE.txt?
>
> I haven''t tested 0.9.1 yet, so you may have change...
2009 Jul 26
2
[LLVMdev] question about llvm.powi and reassociation
Hello, all. To get my feet wet and hopefully make a small contribution, I
was looking for something small to start with. I settled on one of the
suggestions from the CodeGen readme:
> Reassociate should turn things like:
>
> int factorial(int X) {
> return X*X*X*X*X*X*X*X;
> }
>
> into llvm.powi calls, allowing the code generator to
> produce balanced multiplication