-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEMP] [BUG] [TODO] Minor changes to Base and BaseLowFootPrint class …
…in src/base.js. Adding Priority and Circular classes
- Loading branch information
Ganesh K Bhat
committed
Dec 7, 2022
1 parent
fd14b05
commit 3f87a53
Showing
39 changed files
with
975 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,51 @@ | ||
[TODO] | ||
|
||
- Add Event Handlers for queues - BeforeEvent, Event, ErrorEvent, AfterEvent | ||
[TODO] | ||
|
||
- [D] Base Queue | ||
- [D] Queue | ||
- [D] Circular Queue | ||
- [D] Priority Queue | ||
- [T] DoubleEnded Queue (DEQueue) | ||
- [T] Stack | ||
- [T] Semaphore | ||
|
||
- USE CASES: | ||
|
||
- [] Normal Implement | ||
- [] Cached Counter Base | ||
- [] LIFO | ||
- [] FIFO | ||
- [] Low memory foot print | ||
- [] LIFO | ||
- [] FIFO | ||
- [] Async Implement | ||
- [] Cached Counter Base | ||
- [] LIFO | ||
- [] FIFO | ||
- [] Low memory foot print | ||
- [] LIFO | ||
- [] FIFO | ||
|
||
- [T] Add Event Handlers for queues | ||
|
||
- [] BeforeEvent | ||
- [] Event | ||
- [] AfterEvent | ||
- [] ErrorEvent | ||
|
||
- [] Consider RX.js features inbuilt https://github.com/reactivex/rxjs | ||
|
||
- [] Consider base functions like | ||
- Limit, Debounce, Throttle, Queue https://www.npmjs.com/package/p-limit | ||
- [] https://www.npmjs.com/package/promise-throttle-all | ||
- [] https://www.npmjs.com/package/concurrent-task | ||
- [] https://www.npmjs.com/package/concurrencylimit | ||
- [] Consider something similar or put as dependency https://www.npmjs.com/package/rx-queue | ||
- [] https://www.npmjs.com/package/node-traffic | ||
- Queues | ||
- [] https://www.npmjs.com/package/partition-queue | ||
- [] https://www.npmjs.com/package/rx-queue | ||
- [] https://www.npmjs.com/package/task-queue | ||
- [] https://www.npmjs.com/package/concurrency-queue | ||
- [] https://www.npmjs.com/package/@sebowy/concurrent-queue | ||
|
||
- remove packages - "denque": "^2.1.0", "synchronization-js": "^1.0.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; | ||
|
||
const { Circular } = require("../index"); | ||
|
||
let c = new Circular(); | ||
|
||
c.add([1, 2, 3, 4, 5, 6]); | ||
console.log(c.items); | ||
c.add([1, 32]); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; | ||
|
||
const { Circular } = require("../index"); | ||
|
||
let c = new Circular(); | ||
|
||
c.add([1, 2, 3, 4, 5, 6]); | ||
console.log(c.items); | ||
c.add([1, 32]); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
c.pop(); | ||
c.pop(); | ||
console.log(c.items); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* | ||
* Package: scale.concurrency | ||
* Author: Ganesh B | ||
* Description: | ||
* Install: npm i scale.concurrency --save | ||
* Github: https://github.com/ganeshkbhat/scale.concurrency | ||
* npmjs Link: https://www.npmjs.com/package/scale.concurrency | ||
* File: .js | ||
* File Description: .js | ||
* | ||
*/ | ||
|
||
/* eslint no-console: 0 */ | ||
|
||
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.