본문 바로가기
[Database] -journal 파일의 정체는 뭘까? ( + WAL, temp files ) [Database] -journal 파일의 정체는 뭘까? ( + WAL, temp files ) http://gywn.net/2013/08/let-me-intorduce-sqlite/http://www.sqlite.org/tempfiles.html Journal --journal 은 rollback journal 이다.이는 SQLite 에서 atomic commit & rollback 을 지원하기 위한 임시 파일이다.-journal 의 파일명을 갖는다. rollback journal 은 보통 transaction 이 시작될 때 생성이 되고, 보통 transaction 이 commit 또는 rollback 으로 끝날 때 삭제된다. -보통 이 journal 파일은 SQLite DB 가 open 되었을 때, .. 2019. 1. 15.
[SQLite3] 06. 임베디드 SQLite3 최적화 #2 [SQLite3] 06. 임베디드 SQLite3 최적화 #2 이 글은 "빠르게 활용하는 모바일 데이터베이스 SQLite3” 이란 글을 보며 필요한 내용만 정리한 글입니다.자세한 내용은 책을 구매해서 보세요 5. 엄격한 자료형 검사 -SQLite3 자체는 동적 자료형 형태지만 typeof() 함수와 CHECK 제약조건을 이용해서 정적 자료형처럼 사용할 수 있다. ex)sqlite> CREATE TABLE testTable( name text CHECK(typeof(name)=‘text’), age integer CHECK(typeof(age)=‘integer’)); CHECK 규칙을 위반할 경우 constraint failed error 가 발생한다. 6. DB 갱신과 트랜잭션 -INSERT/UPDATE .. 2018. 5. 23.
[android] 최고의 안드로이드 개발 원칙 [android] 최고의 안드로이드 개발 원칙 https://medium.freecodecamp.com/android-development-best-practices-83c94b027fd3#.fkhdpa3m0cf) 현재 제가 잘 못 하고 있는 것을 빨간 색 마킹 했습니다. ( 결론은 test 군요.. ) -Google 이 추천하는 Android architecture 를 사용하라. -코드 퀄리티를 항상 좋게 유지하라. -Unit test 를 항상 포함하라. JVM 에서 돌 수 있는 Java 코드들은 단말 위에서 테스트하는 것보다 훨씬 빠르다. Android dependency 가 있는 코드들은 Robolectric 을 사용하는 것을 추천한다. Mockito 도 좋다. -Functional UI test .. 2018. 3. 7.
[Kotlin] Kotlin 의 숨겨진 비용 #2 [Kotlin] Kotlin 의 숨겨진 비용 #2 https://medium.com/@BladeCoder/exploring-kotlins-hidden-costs-part-2-324a4a50b70 Local functions -local function 의 limit 은 inline 으로 정의될 수 없다는 것 ( 글 쓴 당시까지는, 현재버전에서 꼭 체크해보라 ).그리고 local function 을 가지고 있는 녀석도 inline 이 될 수 없다.fun someMth(a: Int): Int { fun sumSquare(b: Int) = (a+b) * (a+b) return sumSquare(1) + sumSqaure(2)} local function 은 Function object 로 바뀐다.public .. 2018. 1. 17.
[ios/reference] Core Animation Basics [ios/reference] Core Animation Basics https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/CoreAnimationBasics/CoreAnimationBasics.html#//apple_ref/doc/uid/TP40004514-CH2-SW3 -Prerequisite 로 앞의 글들을 읽어보길...앞의 글들에서 catch 하지 못한 부가 정보들만 정리[ios/reference] Core Animation -Core Animation 을 사용하지 않고, 변화에 대해서 drawRect: 에서 다시 그리는 방법도 있지만,이 방법은 MainThread 에서 그림을 그리기 때문에.. 2017. 11. 20.
[ios/tutorial] Core Data - Initializing the Core Data Stack [ios/tutorial] Core Data - Initializing the Core Data Stack https://developer.apple.com/library/watchos/documentation/Cocoa/Conceptual/CoreData/InitializingtheCoreDataStack.html#//apple_ref/doc/uid/TP40001075-CH4-SW1 -Core data stack 은 core data 를 초기화하고, external data store 와 app 사이를 중재하는 역할을 하는 framework 집합을 이야기한다. -stack 은 다음 세 가지로 구성된다. NSManagedObjectContextNSPersistentStoreCoordinatorNSMana.. 2017. 11. 3.
[Effective Objective-C] 목차와 요약을 통해 한 눈에 알아보는 Effective Objective-C #33 ~ #40 [Effective Objective-C] 목차와 요약을 통해 한 눈에 알아보는 Effective Objective-C #33 ~ #40 출처 : Effective Objective-C #33 : Weak 참조를 사용하여 리테인 순환을 피하라. 참조를 weak 로 만들면 리테인 순환을 피할 수 있다. weak 참조는 자동으로 nil 로 채워질 수도, 채워지지 않을 수도 있다. 자동으로 nil 로 설정되는 것은 ARC 에서 소개된 새로운 기능이다. 그리고 런타임에서 구현되었다. 자동으로 nil 로 채워지는 weak 참조를 읽는 것은 항상 안전하다(반드시 정상 객체가 아니면 nil 이기 때문). 그 말은 절대로 할당 해제되는 참조를 포함하지 않는다는 것이다. #34 : 오토릴리스 풀을 사용하여 최고 메모리 .. 2017. 10. 5.
[Kotlin Tutorial] 한 차원 높은 함수 : 람다를 parameter 와 return value 로 - Chap8. Higher-order functions: lambdas as parameters and return values [Kotlin Tutorial] 한 차원 높은 함수 : 람다를 parameter 와 return value 로 - Chap8. Higher-order functions: lambdas as parameters and return values 참조 : Kotlin in action 8.1. Declaring higher-order functions -Higher-order function 이란 argument 와 return 으로 다른 function 을 갖는 것을 의미한다.Kotlin 에서는 function 이 lambda 나 function reference 로 표시된다. 8.1.1. Function types -val sum = { x:Int, y:Int -> x+y }val action = { pr.. 2017. 8. 31.
[android] JSON lib 비교 [android] JSON lib 비교 http://www.developer.com/lang/jscript/top-7-open-source-json-binding-providers-available-today.htmlhttps://dzone.com/articles/be-lazy-productive-android -실험 그래프는 위의 링크를 참조하길..여기서는 결과만 정리!! -JSON 관련 유명한 Library 종류는..JacksonGoogle-gsonJSON-lib ( 기본 )Flexjsonjson-iogensonJSONiJ -약 300KB 정도 용량을 read(deserialize)/write(serialize) 했을 때는Flexjson 과 Gson 이 가장 빠른 편이었다. -100MB 이상의 고용량.. 2017. 7. 21.
반응형