Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are the benefits of SFIO over STDIO still valid?

Tags:

c

linux

io

I have just noticed about a library SFIO for a safe and fast IO processing in C. But it is not very up to date. The last version of library is released in 2005 2012 and I couldn't assess that if the claimed benefits of SFIO over STDIO are still valid with comparison to the recent releases of standard IO library. Also Would it be reasonable to use this library in a production code?

like image 774
systemsfault Avatar asked Jul 02 '10 06:07

systemsfault


2 Answers

I would prefer using standard stuffs instead of relying on a lib that is not maintained or developed anymore. Do tests however to know if your code really benefits from its usage. If it is not hard, develop your code with switches definible at compile time to use sfio or the standard approach, so that you can switch to one or another according to needs and if you notice sfio is giving problems.

like image 188
ShinTakezou Avatar answered Oct 25 '22 09:10

ShinTakezou


I am only aware of this fact this SFIO library claims to be more efficient, safe, and robust, yet I never bothered to try this library, as standard io library is always fine with me. I want to ask what benefits they claim which you are not able to assess. can you give details and also the exact references.

Also I would really want to ask you why do you want to rely on some non standard library over standard one, what is your special purpose.

Anyways if there is no such special requirement I would suggest you to use only standard library.

Also as you have asked about using it in a production code, so my suggestion is a absolutely NO.

Thanks Alok.Kr.

like image 32
Kumar Alok Avatar answered Oct 25 '22 11:10

Kumar Alok