Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bahuvrihi-syckle

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bahuvrihi-syckle

  • 1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= {Syckle}[http://bahuvrihi.github.com/syckle]

A sick little syck loader.

== Description

YAML is great and complete, but load relatively slowly in large part because it loads everything at once. In cases where you need to quickly load a simple YAML configuration file, the overhead is too much.

Syckle is a very simple syck binding that can load basic ruby types: true, false, nil, numbers, strings, symbols, arrays, and hashes. When Syckle.load encounters a more complex object, it autoloads YAML and defers to YAML.load. The result is a quicker-loading, seamless alternative to using YAML.

Benchmarks indicate a require + load using Syckle is about 10x faster than the same using YAML, entirely due to the require time.

== Usage

Simply require syckle instead of yaml. YAML will be set for autoloading as necessary, and can be required at a later time if necessary (although note that using syckle only provides a load-time benefit up until YAML is loaded, duh).

start = Time.now

require 'syckle' Syckle.load("key: value") # => {'key' => 'value'}

puts "#{Time.now-start} s"

=== Bugs/Known Issues

== Installation

Syckle is available as a gem on GitHub[http://rubyforge.org/projects/tap]. Use:

% gem install bahuvrihi-syckle

== Info

Copyright (c) 2008, Regents of the University of Colorado. Developer:: {Simon Chiang}[http://bahuvrihi.wordpress.com], {Biomolecular Structure Program}[http://biomol.uchsc.edu/], {Hansen Lab}[http://hsc-proteomics.uchsc.edu/hansenlab/] Support:: CU Denver School of Medicine Deans Academic Enrichment Fund Licence:: {MIT-Style}[link:files/MIT-LICENSE.html]

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc