Giter VIP home page Giter VIP logo

prevayler-clj's People

Contributors

bamboo avatar kalecser avatar kauwai avatar klauswuestefeld avatar rfhayashi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prevayler-clj's Issues

[Improvement] use a more compact format for clojure data structures serialization

Hi Klaus, first of all: thanks for Prevayler!
I've made this little test

(ns prevayler.core
  (:require
    [org.prevayler :refer :all])
  (:import
    [java.io File]))

(defn tmp-file [l]
  (doto
    (File/createTempFile (str "test-" l "-") ".tmp")
    (.delete)))

(let [handler-fn (fn [m [k v]] (assoc m k v))
      prev! #(prevayler! handler-fn %1 (tmp-file %2))
      initial-state (atom {})]
  (with-open [p (prev! @initial-state "a")]
    (doseq [kv (range 1000000)]
      (handle! p [(keyword (str "a" kv)) kv]))
    (reset! initial-state @p))
  (with-open [p (prev! @initial-state "b")]
    ))

the first temp file created contains a map and one milion two element clojure vectors and is 1GB in size. Clojure data structures are not so compact when persisted through Java serialization. I'd sugget to improve this using a clojure serialization library with fallback to java serialization, like ptaoussanis/nippy.

Cheers,
Luca

Demo please!

@klauswuestefeld I loved this concept and I also was searching for something easy to start and avoid complex database communications, however, trying to start an app using prevayler/prevayler-clj I felt some difficulties since didn't found documentation or articles about this.
Could you make a demo app or show something opensource that uses prevayler? maybe a screencast? ๐Ÿ™

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.