'2020/01/20'에 해당되는 글 3건

  1. 2020.01.20 open refine memory 설정
  2. 2020.01.20 async와 non block
  3. 2020.01.20 node.js promise

흐음.. 아무튼 8기가 노트북에서 하나 16기가 서버에서 하나

기본값은 1400MB만 쓰도록 잡혀있는 것으로 보인다.

 

~/work/src/openrefine-3.2$ ./refine 
You have 7870M of free memory.
Your current configuration is set to use 1400M of memory.
OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:
https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory
Starting OpenRefine at 'http://127.0.0.1:3333/'

18:52:18.859 [            refine_server] Starting Server bound to '127.0.0.1:3333' (0ms)
18:52:18.862 [            refine_server] refine.memory size: 1400M JVM Max heap: 1407188992 (3ms)

 

[링크 : https://github.com/OpenRefine/OpenRefine/wiki/FAQ:-Allocate-More-Memory]

'프로그램 사용 > openrefine' 카테고리의 다른 글

openrefine web scraping  (0) 2020.02.03
openrefine 설명서  (0) 2020.01.23
Posted by 구차니

non block은 async한 동작을 하는 방법중에 하나지만

non block이라고 해서 반드시 async 하다고 할 순 없다라...

 

Thread 등으로 blocking 작업을 분리해서 async하게 할 수도 있기에

 

asynchronous와 non-blocking이 동일한거라고 볼 순 없다고 하는데

이해할듯 하면서 더 어려운 말이네...

 

[링크 : https://tech.peoplefund.co.kr/2017/08/02/non-blocking-asynchronous-concurrency.html]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

smmu?  (0) 2020.09.08
zmmu gen-z  (0) 2020.09.07
EAV - Entitiy Attribute Value  (0) 2019.12.15
ETL - Extract Transform Load  (0) 2019.12.11
SAS expander  (0) 2019.11.02
Posted by 구차니
Programming/node.js2020. 1. 20. 16:10

promise는 비동기 작업을 동기작업으로 바꿀수(?)있는 마법의 키워드 이다.

아래와 같이 new promise를 통해서 만들어 주고

return new promise((resolve, reject) => {

// 비동기 작업

// 비동기 작업의 리턴값 (정상)

   resolve(value);

// 비동기 작업 비정상 종료시 리턴값

   reject(value);

})

 

3개의 비동기 작업이 모두 종료되고 그 값을 이용해 무언가를 하려면

promise.all로 구현을 해주고 값을 하나로 합쳐주면 된다.

Promise.all([worker1, worker2, worker3])

.then([value1, value2, value3]) => {

return ({value1, value2, value3})

 

 

[링크 : https://programmingsummaries.tistory.com/325]

[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise/all]

[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise]

 

구조 분해 할당

[링크 : https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment]

'Programming > node.js' 카테고리의 다른 글

unserscore 라이브러리  (0) 2020.01.29
node.js 집합연산  (0) 2020.01.23
node.js cookie 관련 함수들  (0) 2020.01.19
node.js crypto 모듈  (0) 2020.01.19
node.js xpath 그리고 boolean  (0) 2019.12.17
Posted by 구차니