전체 텍스트는 ~4MB입니다. 즉, 앱 실행시 전체 텍스트를 메모리에로드하는 것이 문제가되지 않아야합니다. - 그리고, JSON은 북마크에 대한 괜찮을 것 때문에 성경이 구조화 된 방법, 해시/배열 조회를 중첩 한 간단한 문제이다 :
var bible = {
genesis: [
[ // first chapter
"In the beginning God created the heaven and the earth.",
"And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.",
...
],
[ // second chapter
"Thus the heavens and the earth were finished, and all the host of them.",
"And on the seventh day God ended his work which he had made; and he rested on the seventh day from all his work which he had made.",
...
],
...
],
exodus: [
[ // first chapter
"Now these are the names of the children of Israel, which came into Egypt; every man and his household came with Jacob.",
...
],
...
],
...
};
모든 구절이를 사용하여보고 매우 빠른해야 구조 : 책을 가져 오려면 해시지도 조회이고, 장과 절은 배열 오프셋입니다.