On 02/12/2015 11:08 AM, Josef Reidinger wrote:
> On Wed, 11 Feb 2015 20:19:47 +0100
> Ladislav Slezak <[email protected]> wrote:
> 
>> - Use strftime() call in a C Ruby extension. We already do this for
>> locale dependent string comparison, see Yast.strcoll() implementation
>> in ruby-bindings [2]. Similarly we can add a strftime() wrapper there.
>>
>>
>> The first solution is simpler but I'd rather prefer the second one as
>> it has lower overhead and scales better.
>>
> 
> I agree, second solution should be quite easy to do and good solution.
> So if we agreed, I can add such method to Yast namespace.

Yes, please.

> Josef
> 
>>
>>
>> [1]
>> http://rxr.whitequark.org/mri/source/ext/date/date_strftime.c?v=2.1.2#217
>> [2]
>> https://github.com/yast/yast-ruby-bindings/blob/master/src/binary/Builtin.cc#L627

-- 
Ancor González Sosa
YaST Team at SUSE Linux GmbH
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to