[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: freeing srcprops ?

From: Han-Wen Nienhuys
Subject: Re: freeing srcprops ?
Date: Fri, 19 Jan 2007 11:37:48 +0100
User-agent: Thunderbird (X11/20061219)

Kevin Ryde escreveu:
> Han-Wen Nienhuys <address@hidden> writes:
>>  SCM
>>  scm_make_srcprops (long line, int col, SCM filename, SCM copy, SCM plist)
>>  {
>> +  if (!SCM_UNBNDP (filename))
>> +    plist = scm_acons (scm_sym_filename, filename, plist);
> Can those two cells be shared among all source props for the same
> file, to save space?

Not the list cell, but the pair-cell is sharable, at the cost of 
some infrastructure for sharing it.

>> +  SCM_RETURN_NEWSMOB3 (scm_tc16_srcprops,
>> +                   SRCPROPMAKPOS (line, col),
> If col is a freaky big value then perhaps put it in the plist.  Could
> be helpful if there's stupidly long lines in some generated code file,
> wouldn't cost anything normally.

It costs in terms of  infrastructure and code to deal with this. 
SInce this is for debugging, a freaky big value doesn't make sense at 
all, IMO. 

 Han-Wen Nienhuys - address@hidden -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]