#86 URIHandle refinement

بسته‌شده
4 سال پیش باز شده توسط ranides · 2 دیدگاه

Implement Map<> URIHandle#time() which returns all supported time metadata at once.

Rename content() to text()

Create content() which returns binary data as byte[], or ByteBuffer, or something

Implement `Map<> URIHandle#time()` which returns all supported time metadata at once. Rename `content()` to `text()` Create `content()` which returns binary data as byte[], or ByteBuffer, or something
ranides نظر 3 سال پیش
مالک

When we talk about Map<> URIHandle#time() it would be better to just

  • don't add new method
  • old method should load all timestamps, if it is supported and memoize them
  • next calls should just read memoized values

Update of memoized content should be triggered if you ask again about URITime which was used before for memoization. It means, if you as two times for modification, it will be fetched two times.

To implement this, we should store internally:

  • memoized result
  • URITime used to memoize
When we talk about `Map<> URIHandle#time()` it would be better to just - don't add new method - old method should load all timestamps, if it is supported and memoize them - next calls should just read memoized values Update of memoized content should be triggered if you ask again about URITime which was used before for memoization. It means, if you as two times for modification, it will be fetched two times. To implement this, we should store internally: - memoized result - URITime used to memoize
ranides نظر 3 سال پیش
مالک

Honestly, current implementations of time are good enough. Skip this part.

Honestly, current implementations of time are good enough. Skip this part.
ranides ارجاع این مسئله به کامیت 3 سال پیش
ranides 3 سال پیش بسته شد
برای پیوستن به گفتگو، وارد شودید.
بدون نقطه عطف
بدون مسئول رسیدگی
1 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.