Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ protected ExecutorService getExecutor(FirebaseApp firebaseApp) {
thread.setPriority(9);
return thread;
};


// 커스텀 스레드풀 초기화
ThreadPoolExecutor executor = new ThreadPoolExecutor(
100,
100,
Expand All @@ -28,6 +29,7 @@ protected ExecutorService getExecutor(FirebaseApp firebaseApp) {
threadFactory
);

// application init 시, 스레드풀 내 스레드 바로 할당
executor.prestartAllCoreThreads();

return executor;
Expand All @@ -42,4 +44,4 @@ protected void releaseExecutor(FirebaseApp firebaseApp, ExecutorService executor
protected ThreadFactory getThreadFactory() {
return Executors.defaultThreadFactory();
}
}
}